ioemu: Do not close slave half of a pty.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 20 Dec 2007 10:35:22 +0000 (10:35 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 20 Dec 2007 10:35:22 +0000 (10:35 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/vl.c

index 01f4bc7ef6a217547667227132ec6bd80c8aa7bb..bb12a3fd99610de84c807f14c928f2a4e31985c3 100644 (file)
@@ -1876,8 +1876,6 @@ static CharDriverState *qemu_chr_open_pty(void)
     /* Set raw attributes on the pty. */
     cfmakeraw(&tty);
     tcsetattr(slave_fd, TCSAFLUSH, &tty);
-    
-    close(slave_fd);
 
     fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd));